package com.bishe.demo.modules.hotel.hotel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hotel")
public class HotelController {
    @GetMapping("/registerHotel")
    public String register(ModelMap modelMap) {
        modelMap.put("template", "reception/hotel/pages/registerHotel");
        return "reception/hotel/indexSimple";
    }

    @GetMapping("/hotels")
    public String hotels(ModelMap modelMap) {
        modelMap.put("template", "reception/hotel/pages/hotel/hotels");
        return "reception/hotel/index";
    }

    @GetMapping("/detail")
    public String detail(ModelMap modelMap) {
        modelMap.put("template", "reception/hotel/pages/hotel/detail");
        return "reception/hotel/indexSimple";
    }

    @GetMapping("/hotelManage")
    public String hotelManage(ModelMap modelMap) {
        modelMap.put("template", "reception/hotel/pages/hotel/hotelManage");
        return "/indexSimple";
    }

    @GetMapping("/myOrder")
    public String myOrder(ModelMap modelMap) {
        modelMap.put("template", "reception/hotel/pages/hotel/myOrder");
        return "/reception/hotel/indexSimple";
    }
}
